// Overrides
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
@mixin btn-shadow($color) {
  background-image: linear-gradient(180deg, lighten($color, 15%) 0%, $color 60%, darken($color, 4%) 100%);
  filter: none;
  border: 1px solid darken($color, 10%);
}

.button {
  transition: all 200ms ease;
  text-shadow: -1px -1px 0 rgba($black, 0.1);

  &.is-loading {
    text-shadow: none;
  }

  @each $name, $pair in $colors {
    $color: nth($pair, 1);
    $color-invert: nth($pair, 2);

    &.is-#{$name} {
      &:not(.is-outlined):not(.is-inverted) {
        @include btn-shadow($color);

        &.is-hovered,
        &:hover {
          @include btn-shadow(darken($color, 4%));
        }
      }
    }
  }
}

.notification {
  border: 1px solid $border;
  @each $name, $pair in $colors {
    $color: nth($pair, 1);
    $color-invert: nth($pair, 2);

    &.is-#{$name} {
      background-color: rgba($color, 0.1);
      color: $color;
      border: 1px solid rgba($color, 0.3);
    }
  }
}

.progress {
  border-radius: $radius-large;
}

.nav, .navbar {
  @include btn-shadow($light);
}

.hero {
  .nav {
    background-color: $background;
    @include btn-shadow($light);
    border: none;
  }
  @each $name, $pair in $colors {
    $color: nth($pair, 1);
    $color-invert: nth($pair, 2);

    &.is-#{$name} {
      .nav {
        background: $color;
        @include btn-shadow($color);
        border: none;
      }
    }
  }
}

.navbar {
  @each $name, $pair in $colors {
    $color: nth($pair, 1);
    $color-invert: nth($pair, 2);

    &.is-#{$name} {
      @include btn-shadow($color);
    }
  }
}
